
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class ForumCommentBO : Csla.BusinessBase<ForumCommentBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in ForumCommentBO
			//AuthorizationRules.AllowRead(ForumCommentIDProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(ForumNewIDProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(UserNameProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(CommentContentProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(UrlImageProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(CreatedDateProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(UpdatedDateProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(IsViolationProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(UserNameReportProperty, "ForumCommentBOReadGroup");
			//AuthorizationRules.AllowRead(NumberReportProperty, "ForumCommentBOReadGroup");

			//AuthorizationRules.AllowWrite(ForumNewIDProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(UserNameProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(CommentContentProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(UrlImageProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(CreatedDateProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(UpdatedDateProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsViolationProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(UserNameReportProperty, "ForumCommentBOWriteGroup");
			//AuthorizationRules.AllowWrite(NumberReportProperty, "ForumCommentBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of ForumCommentBO
			//AuthorizationRules.AllowCreate(typeof(ForumCommentBO), "ForumCommentBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(ForumCommentBO), "ForumCommentBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(ForumCommentBO), "ForumCommentBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.ForumCommemt data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
        }
    }
}
